﻿@model SchoolCommunicationSystem.Models.ViewGradesByClassModels
@if (Model.Term != null && Model.Term.Count() > 0)
{
    using (Html.BeginForm("SelectClass", "ViewGradesByClass", FormMethod.Post))
    { 
        <div class="col-sm-2">
    @Html.DropDownListFor(
                    m => m.Term,
                    new SelectList(Model.Term, "termID", "termName"), new { @class = "form-control  input-sm" }
                )
            </div>
    @Html.HiddenFor(m => m._schoolYearID)
        <div class="col-sm-2">
    @Html.DropDownListFor(
                    m => m.ClassInSchoolYear,
                    new SelectList(Model.ClassInSchoolYear, "classID", "className"),
                    "[Hãy chọn lớp học]", new { @class = "form-control  input-sm" })
            </div>
    <input type="submit" value="Select" />
    }
}
else
{
    <div class="col-sm-2">
        <select class="form-control input-sm">
        </select>
    </div>
    <div class="col-sm-2">
        <select class="form-control input-sm">
        </select>
    </div>
    
}